#![allow(unused_imports)]
use std::vec;

use chrono::Utc;
use eztrade_dto::{
    DataTransferObject, Message,
    stage::{StageInfo, StagePhase, MarketSimConfig},
};
use salvo::prelude::*;
use crate::core::sandbox;

#[handler]
pub(crate) async fn get_root(_req: &mut Request, resp: &mut Response) {
    let stages: Vec<StageInfo> = sandbox::list_stage_infos();
    resp.render(Json(stages));
}